import request from '@/utils/request'


/**删除快递公司合同 */
export function delExpressCompanyContract(ids) {
  return request({
    url: '/distribution/expressCompanyContract/' + ids,
    method: 'delete'
  })
}

/**查询批次快递合同列表 */
export function selectExpressContract(params) {
  return request({
    url: '/distribution/expressCompany/selectExpressContract',
    params
  })
}

/**新增批次快递合同 */
export function addBatchExpressContract(params) {
  return request({
    url: '/distribution/batchExpressContract',
    params
  })
}

/**查询批次快递列表 */
export function expressCompanyList(params) {
  return request({
    url: '/distribution/expressCompany/list',
    params
  })
}


/**新增批次快递 */
export function addExpressCompany(data) {
  return request({
    url: `/distribution/expressCompany`,
    method: 'post',
    data
  })
}

/**修改批次快递 */
export function updateExpressCompany(data) {
  return request({
    url: `/distribution/expressCompany`,
    method: 'put',
    data
  })
}

/**删除批次快递 */
export function delExpressCompany(ids) {
  return request({
    url: `/distribution/expressCompany/` + ids,
    method: 'DELETE',
  })
}

